<?php 
	session_start();
	error_reporting(1);
	include "../../config.php";
	function message() {
			if ($_SESSION['msg'] != '') {
                  echo '<div class="notification '.$_SESSION['type_msg'].' png_bg">
							<a href="#" class="close"><img src="../skins/sa/resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>'.$_SESSION['msg'].'</div>
						</div>';

				  $_SESSION['msg'] = '';
			}
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include"../includes/js_css.php"?>
</head>
  
	<body id="login">
		<div id="login-wrapper" class="png_bg">
			<div id="login-top">			
				<h1>Simpla Admin</h1>
				<!-- Logo (221px width) -->
                <img  id="logo" src="../skins/sa/resources/images/logo.png" alt="Simpla Admin logo"/>
			</div><!--Simpla Admin logo-->
			<div id="login-content">
				<form action="login_sm.php" method="post">				
					<?php message()?>
					
					<p>
						<label>Username</label>
						<input class="text-input" type="text" name="ten_dang_nhap" id="ten_dang_nhap" value="<?php echo $_COOKIE['USERNAME']?>" />
					</p>
					<div class="clear"></div>
					<p>
						<label>Password</label>
						<input class="text-input" type="password" name="mat_khau" id="mat_khau" value="<?php  echo base64_decode(base64_decode($_COOKIE['PASSWORD']))?>"/>
					</p>
					<div class="clear"></div>
					<p id="remember-password">
						<input type="checkbox" name="remember"/>Remember me <br>              
                   <input type="radio" value="vi" checked="checked" name="language" id="language">
                   Tiếng Việt<br>
                    <input type="radio" value="en" name="language" id="language">
                    Tiếng Anh
					</p>
					<div class="clear"></div>
					<p>
						<input class="button" type="submit" value="Sign In" />
					</p>
					
				</form>
			</div> <!-- End #login-content -->
			
		</div> <!-- End #login-wrapper -->

  </body>
</html>
